﻿@model JewererBasic.Models.RegisterModel

<hgroup class="title">
    <h2>Create a new account.</h2>
</hgroup>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary()

    <fieldset>
        <legend>Registration Form</legend>
        <ol>
            <li>
                @Html.LabelFor(m => m.UserName)
                @Html.TextBoxFor(m => m.UserName)
            </li>
            <li>
                @Html.LabelFor(m => m.Password)
                @Html.PasswordFor(m => m.Password)
            </li>
            <li>
                @Html.LabelFor(m => m.ConfirmPassword)
                @Html.PasswordFor(m => m.ConfirmPassword)
            </li>
            <li>
                @Html.RadioButtonFor(m => m.Role, "Administrator", JewererBasic.Models.MyRoles.Administrator)Administrator
                @Html.RadioButtonFor(m => m.Role, "Production", JewererBasic.Models.MyRoles.Production)Production
                @Html.RadioButtonFor(m => m.Role, "Order", JewererBasic.Models.MyRoles.Order)Oder
                @Html.RadioButtonFor(m => m.Role, "Storage", JewererBasic.Models.MyRoles.Storage)Storage
                @Html.RadioButtonFor(m => m.Role, "User", JewererBasic.Models.MyRoles.User)User
                @Html.RadioButtonFor(m => m.Role, "MC", JewererBasic.Models.MyRoles.MC)MC
            </li>

        </ol>
        <input type="submit" value="Register" />
    </fieldset>
}
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
